package com.udp;

public class User2 {

    public static void main(String[] args) {
        //开启收发两个线程
        Thread sendThread = new Thread(new TalkSendThread(5555, "localhost", 8888));
        sendThread.setName("User2");
        sendThread.start();
        Thread receiveThread = new Thread(new TalkReceiveThread(9999));
        receiveThread.start();
    }

}
